// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_MST_PRODUCT_PRICE
// * CreateDate    : 2011/9/27 11:24:17
// * Creater       : CodeSmith
// * LastChangeDate: 2011/9/27 11:24:17
// * LastChanger   : 2011/9/27 11:24:17
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class MstProductPriceTable : TableInfo
    {
		public const string C_TableName = "MST_PRODUCT_PRICE";
		
		public const string C_PRODUCT_ID = "PRODUCT_ID";
		public const string C_SUPPLIER_ID = "SUPPLIER_ID";
		public const string C_CURRENT_PRICE = "CURRENT_PRICE";
		public const string C_PRICE_UNIT = "PRICE_UNIT";
		public const string C_UPDATE_PRICE_DATE = "UPDATE_PRICE_DATE";
		public const string C_UPDATE_PRICE_USER = "UPDATE_PRICE_USER";
		public const string C_REMARK = "REMARK";
		
		public MstProductPriceTable()
        {
            _tableName = "MST_PRODUCT_PRICE";
        }
		
		protected static MstProductPriceTable _current;
        public static MstProductPriceTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new MstProductPriceTable();

            _current.Add(C_PRODUCT_ID, new ColumnInfo(C_PRODUCT_ID,"ProductId", true, typeof(string)));
            _current.Add(C_SUPPLIER_ID, new ColumnInfo(C_SUPPLIER_ID,"SupplierId", true, typeof(string)));
            _current.Add(C_CURRENT_PRICE, new ColumnInfo(C_CURRENT_PRICE,"CurrentPrice", false, typeof(decimal)));
            _current.Add(C_PRICE_UNIT, new ColumnInfo(C_PRICE_UNIT,"PriceUnit", false, typeof(string)));
            _current.Add(C_UPDATE_PRICE_DATE, new ColumnInfo(C_UPDATE_PRICE_DATE,"UpdatePriceDate", false, typeof(DateTime)));
            _current.Add(C_UPDATE_PRICE_USER, new ColumnInfo(C_UPDATE_PRICE_USER,"UpdatePriceUser", false, typeof(string)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK,"Remark", false, typeof(string)));
			
		}
		
		public ColumnInfo PRODUCT_ID
        {
            get { return this[C_PRODUCT_ID]; }
        }
		
		public ColumnInfo SUPPLIER_ID
        {
            get { return this[C_SUPPLIER_ID]; }
        }
		
		public ColumnInfo CURRENT_PRICE
        {
            get { return this[C_CURRENT_PRICE]; }
        }
		
		public ColumnInfo PRICE_UNIT
        {
            get { return this[C_PRICE_UNIT]; }
        }
		
		public ColumnInfo UPDATE_PRICE_DATE
        {
            get { return this[C_UPDATE_PRICE_DATE]; }
        }
		
		public ColumnInfo UPDATE_PRICE_USER
        {
            get { return this[C_UPDATE_PRICE_USER]; }
        }
		
		public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }
		
		
		
	}
}

